<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<c:set var="now" value="<%= new java.util.Date() %>"/>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<shield:permssion type="button">
<form action="${ctxPathA}/oa/work/todayTask/addOrUpdate" method="post" autocomplete="off" class="show-info">
    <input id="id" name="id" type="hidden" maxlength="100" value="${model.id }">
    <table class="tab-show">
    	<colgroup>
    		<col width="20%">
    		<col width="">
    	</colgroup>
		<tr>
			<th>
				<label><font color="red">*</font>标题：</label>
			</th>
         	<td colspan="3"><input type="text" name="title" class=" required" maxlength="50" value="${model.title}"></td>
		</tr>
		<tr>
			<th>
				<label><font color="red">*</font>内容：</label>
			</th>
         	<td colspan="3">
         		<textarea id="ueditorContents" name="content"  class="ueditor  required" style="width:99%;height:300px;" maxlength="400">${model.content}</textarea>
         	</td>
		</tr>
		<tr>
			<th>
				<label><font color="red">*</font>开始日期：</label>
			</th> 
         	<td><input type="text" name="startDate" value='<c:if test="${not empty model.id }"><fmt:formatDate value="${model.startDate }" pattern="yyyy-MM-dd"/></c:if><c:if test="${empty model.id }"><fmt:formatDate value="${now }" pattern="yyyy-MM-dd"/></c:if>' class="Wdate  required"></td>
         	<th>
				<label>计划完成日期：</label>
			</th>
         	<td><input type="text" name="plannedCompletionDate" value='<c:if test="${not empty model.id }"><fmt:formatDate value="${model.plannedCompletionDate }" pattern="yyyy-MM-dd"/></c:if><c:if test="${empty model.id }"><fmt:formatDate value="${now }" pattern="yyyy-MM-dd"/></c:if>' class="Wdate  "></td>
		</tr>
		<tr>
			<th>
				<label><font color="red">*</font>工时：</label>
			</th>
         	<td><input  type="text" name="timeConsuming" class=" number required" value="${model.timeConsuming}" maxlength="3" style="display: inline;width: 50%">小时</td>
         	<th>
				<label>完成度：</label>
			</th>
         	<td><select type="text" name="completionDegree" class="" data-v="${model.completionDegree}">
         			<c:forEach var="number" begin="0" end="100" step="10">
         			<option value="${number}">${number}%</option>
         			</c:forEach>
         		</select>
         	</td>
		</tr>
    </table>
    <div class="taCenter">
		<input class="button" type="submit" value="提交"/>
    	<input class="button default" type="reset" value="重置"/>
    </div>
</form>
</shield:permssion>